/*
  类，静态属性，实时用静态属性
    定义：类就是拥有相同属性和方法的一系列对象的集合
*/
class People {
  name: string;
  age: number;
  addr: string;
  static count: number = 0;

  constructor(name: string, age: number, addr: string) {
    this.name = name;
    this.age = age;
    this.addr = addr;
  }

  doEat() {
    console.log("doEat");
  }
}

People.count = 12;
let p1 = new People("zs", 12, "江西");
console.log(People.count);

export {};
